package com.sc.design.factory.abstractfactory;

/***
 * 缺点很明显 横向扩展很难，纵向的扩展简单 因为做到了面向接口OOD编程
 * 但是封装性很好
 */
public class Client {
    public static void main(String[] args) {
        HumanFactory female = new FemaleFactory();
        Human yf = female.createYellowHuman();
        yf.color();
        yf.talk();
        yf.gender();
        HumanFactory male = new MaleFactory();
        Human ym = male.createYellowHuman();
        ym.color();
        ym.talk();
        ym.gender();
    }
}
